<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .yes{
            background-color: #83FFFF;
        }
        .no{
            background-color: skyblue;
        }
        #mytable{
            width:70%;
            margin:0 auto;
            border: 1px solid #ccc;
        }
        #mytable thead a:link{
            color:red;
            margin-left: 20px;
            display: inline-block;
        }
    </style>
</head>
<body>
    <center><h2>回复列表</h2></center>
    <hr>
    <table id="mytable">
        <thead>
        <tr align="right">
            <th colspan="4" >
                <a th:href="@{'/replydetail/addview/'+${list[0].invid}}">添加回复</a>
                <!--<a th:href="@{'/replydetail/addview?invid='+${list[0].invid}}">添加回复</a>-->
                <!--<a th:href="@{/replydetail/addview/}+${list[0].invid}"></a>-->
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a th:href="@{/}">返回帖子列表</a>
            </th>
        </tr>
        <tr  style="background-color:#8BBDFF;">
            <th>测试</th>
            <th>回复内容</th>
            <th>回复昵称</th>
            <th>发布时间</th>
        </tr>
        </thead>
        <tbody>
            <tr th:each="detail,vs : ${list}" th:class="${vs.odd == true ? 'yes':'no'}">
                <td ></td>
                <td th:text="${detail.content}"></td>
                <td th:text="${detail.author}"></td>
                <td th:text="${#dates.format(detail.createdate,'yyyy-MM-dd')}"></td>
            </tr>
        </tbody>
    </table>
</body>
</html>